package com.appspot.didit.test;

import java.io.File;
import junit.framework.TestCase;
import com.google.appengine.tools.development.ApiProxyLocalImpl;
import com.google.apphosting.api.ApiProxy;

public class LocalServiceTestCase extends TestCase {    
	@Override    
	public void setUp() throws Exception {        
		super.setUp();        
		ApiProxy.setEnvironmentForCurrentThread(new TestEnvironment());        
		ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(".")){});    
	}
	
	@Override    
	public void tearDown() throws Exception { 
		ApiProxy.setDelegate(null);        
		ApiProxy.setEnvironmentForCurrentThread(null);        
		super.tearDown();    
	}

}